'''
Print the Multiplication Table with For...In structures
'''
print("{:=^70}".format("  Table 1   "))
for i in range(1, 10):
    for j in range(1, i + 1):
        print('{}*{}={}'.format(j, i, i * j), end='\t')
    print()

print('='*70)

for i in range(9, 0, -1):
    for j in range(1, i + 1):
        print('{}*{}={}'.format(j, i, i * j), end='\t')
    print()

print("\n\n{:=^85}".format("  Table 3   "))
for i in range(1, 10, 1):
    strline = ''
    for j in range(i , 0, -1):
        strline += '{:1}*{:1}={:<5}'.format(j, i, i * j)
    print("{:>85}".format(strline))

print('='*85)

for i in range(9, 0, -1):
    strline = ''
    for j in range(i, 0, -1):
        strline += '{}*{}={:<5}'.format(j, i, i * j)
    print("{:>85}".format(strline))


'''
End of Multiplication Table
'''